<html><head><!--[TEXT(':root:nth-last-child(1)')]-->
  <!--[/TEXT(':root:nth-last-child(1)')]--><title><!--[TEXT(':root:nth-last-child(1)')]-->Impossible rules (:root:first-child, etc)<!--[/TEXT(':root:nth-last-child(1)')]--></title><!--[TEXT(':root:nth-last-child(1)')]-->
  <!--[/TEXT(':root:nth-last-child(1)')]--><style type="text/css"><!--[TEXT(':root:nth-last-child(1)')]-->
:root:first-child { background-color: red; }
:root:last-child { background-color: red; }
:root:only-child { background-color: red; }
:root:nth-child(1) { background-color: red; }
:root:nth-child(n) { background-color: red; }
:root:nth-last-child(1) { background-color: red; }
:root:nth-last-child(n) { background-color: red; }
:root:first-of-type { background-color: red; }
:root:last-of-type { background-color: red; }
:root:only-of-type { background-color: red; }
:root:nth-of-type(1) { background-color: red; }
:root:nth-of-type(n) { background-color: red; }
:root:nth-last-of-type(1) { background-color: red; }
:root:nth-last-of-type(n) { background-color: red; }
p { color: green; }<!--[/TEXT(':root:nth-last-child(1)')]--></style><!--[TEXT(':root:nth-last-child(1)')]-->
  <!--[/TEXT(':root:nth-last-child(1)')]--><link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"><!--[TEXT(':root:nth-last-child(1)')]-->
  <!--[/TEXT(':root:nth-last-child(1)')]--><link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"><!--[TEXT(':root:nth-last-child(1)')]--> <!--[/TEXT(':root:nth-last-child(1)')]--><!--[COMMENT(':root:nth-last-child(1)')]--><!-- bogus link to make sure it gets found --><!--[/COMMENT(':root:nth-last-child(1)')]--><!--[TEXT(':root:nth-last-child(1)')]-->
  <!--[/TEXT(':root:nth-last-child(1)')]--><meta name="flags" content=""><!--[TEXT(':root:nth-last-child(1)')]-->
 <!--[/TEXT(':root:nth-last-child(1)')]--></head><!--[TEXT(':root:nth-last-child(1)')]-->
 <!--[/TEXT(':root:nth-last-child(1)')]--><body><!--[TEXT(':root:nth-last-child(1)')]-->
<!--[/TEXT(':root:nth-last-child(1)')]--><p><!--[TEXT(':root:nth-last-child(1)')]-->This line should be green (there should be no red on this page).<!--[/TEXT(':root:nth-last-child(1)')]--></p><!--[TEXT(':root:nth-last-child(1)')]-->

<!--[/TEXT(':root:nth-last-child(1)')]--></body></html>